Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Maria Nimresakonyettu 3.Dec.03 04:23 PM a Web browser
Domino Designer 6.0.1 Windows 2003


Hello,

When running my code I get the following error (database \\dbname has not been open yet).

here is a piece of my code;

Dim db As New NotesDatabase "" , "mailbox.nsf")
Dim view As NotesView
Set view = db.GetView ("Date Collection")

Dim doc As NotesDocument
Set doc = view.GetFirstDocument

'Dim temp variables
Dim vMth As Variant
Dim vYr As Variant
Dim vMthYr As Variant
Dim sMth As String

Do Until doc Is Nothing

vMth = Left(doc.GetItemValue("DateComp")(0),3)
vYr = Right(doc.GetItemValue("DateComp")(0),4)
vMthYr = vMth & vYr
sMth = Month(Today)

If sMth = "1" Then
If vMthYr = "Dec" & Year(Today) Then
Call doc.PutInFolder("Dec" + Year(Today))
End If
End If

If sMth = "2" Then
If vMthYr = "Jan" & Year(Today) Then
Call doc.PutInFolder("Jan" + Year(Today))
End If
End If

Set doc = view.GetNextDocument(doc)
Loop






problems opening db w/ agent. (~Maria Nimresak... 3.Dec.03)
. . RE: problems opening db w/ agent. (~Cheryl Breakon... 3.Dec.03)
. . RE: problems opening db w/ agent. (~Holly Frokigen... 3.Dec.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS